<%@ page contentType="text/html; charset=UTF-8" %> 
<%@ page import="net.lunjin.bean.News"%>
<%@ page import="java.util.ArrayList" %>
<%@page import="finaler.util.PageList"%>
<%@page import="finaler.util.PageUtil"%>
<%@page import="java.util.List"%>
<%@page import="net.lunjin.util.Constants"%>
<%@page import="net.lunjin.util.ProjectUtil"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>


<% PageList newsList =  (PageList) request.getAttribute("newsList"); %>

<body>
<font color="blue"><b>以下是<%=newsList.getList().size() %>条新闻、主题</b></font><br/><br/>
<%
for( int i=0;i<newsList.getList().size();i++){
	News news = (News) newsList.getList().get(i);
%>

[分类:<%=ProjectUtil.getNewsType(news.getNewstype()+"")%>]<a href="<%=Constants.URL %>/news/<%=news.getId()%>.html" target="_blank"><%=news.getNewstitle()%></a> &nbsp;<a href="delNewsBbs_<%=news.getId()%>">删除</a><br/>

<%} %>

<br/><br/>

	<%=PageUtil.getCurrPage(newsList)%>
	<%=PageUtil.getRecord(newsList)%>
	<%=PageUtil.getSinglePaginator(newsList,false)%>

<br/><br/>
<form action="addNews" method="post"/>
		 <img src="<%=Constants.URL %>/images/arrow_red.gif" width="4" height="13"> 标题：<input type="input" id="newstitle" name="newstitle"/><br/>
         <Select id="newstype" name="newstype">
         	<option value="0">负面新闻</option>
         	<option value="1">投资知识</option>
         	<option value="20">软件推介</option>
         	<option value="21">开户指南</option>
         	<option value="22">标签</option>
         </Select><br>
         <img src="<%=Constants.URL %>/images/arrow_red.gif" width="4" height="13"> 内容：(支持html)<br>
       
		<textarea id="newscontent" name="newscontent" style="width:200px;height:300px" /></textarea>
	
	<input type="submit"/>
</form>

<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>

<form action="modiNews" method="post"/>
		 newId:<input type="text" name="newsid"  id="newsid"/><br/>
		 hit:<input type="text" name="hit"  id="hit"/>
	<input type="submit"/>
</form>

</body>
</html>